import { defineStore } from "pinia";


export const useI18nStore = defineStore('i18n', {
    state: () => ({
        lang: 'zh-CN', // 默认语言
    }),
    actions: {
        setLang(lang: string) {
            this.lang = lang;
        },
    },
    getters: {
        getLang: (state) => state.lang,
    }
})